package com.xxzb.pack0820;

import java.io.*;

//转换流 将字节流转换成字符流
//在实际开发中，都提供了字节流对象
public class DemoF {
    public static void main(String[] args) throws Exception {
        File file=new File("F:\\yongpangaofeng\\a.txt");
        //提供了字节流
        InputStream in=new FileInputStream(file);
        OutputStream out=new FileOutputStream(file);
        //类型转换
        Reader reader=new InputStreamReader(in);
        Writer writer=new OutputStreamWriter(out);
        System.out.println(reader);
        System.out.println(writer);
    }
}
